
import static org.junit.Assert.*;

import java.io.FileNotFoundException;

import org.junit.Test;


public class GradesHistogramTest {

	@Test
	public void testHistogram() throws FileNotFoundException {
		String s="";
		s+=" 0 -  9: ***\n";
		s+="10 - 19: ***\n";
		s+="20 - 29: \n";
		s+="30 - 39: \n";
		s+="40 - 49: *\n";
		s+="50 - 59: *****\n";
		s+="60 - 69: \n";
		s+="70 - 79: \n";
		s+="80 - 89: *\n";
		s+="90 -100: **";
		
		System.out.print(GradesHistogram.histogram("src/grades.in"));
		assertEquals(s,GradesHistogram.histogram("src/grades.in"));
		
	}

}
